<?php
	require_once '../../Helpers/PathHelper.php';
	//
	require_once  '../../Helpers/DbHelper.php';
	require_once  '../../Controllers/StudentController.php';

  session_start();

  if(isset($_POST) && !empty($_POST))
  {
    $s = new StudentController();
    $password = $_POST['new-password'];
    $s->updatePassword($password);
  }

?>
<html>
  <head>
    <title>Student :: CHANGE PASSWORD</title>
    <?php
      require_once '../commons.php';
      renderHeaderStyles() ;
    ?>
  </head>
  <body>

  <div class="container">
    <?php renderStudentView();?>
		<div class="inner">
		  <h1>CHANGE PASSWORD</h1>
      <form name="change-password" method="post">
        <label for="new-password">New Password:</label>
        <input type="password" name="new-password" />
        <input type="submit" name="change-password" value="Change Password" />
      </form>
		</div>
	</div>
	</body>
</html>